<LayoutEditFormBox :loading="load">

    <template slot="main">
        <el-form ref="editForm" :model="form" label-width="120px" label-position="left">
            <LayoutCell>
                <LayoutCellItem title="结算设置">
                    <el-form-item label="分红计算方式" prop="settle_module" :rules="{ required: true, message: '请选择'}">
                        <el-radio-group v-model="form.settle_module">
                            <el-radio :label="1">商品折扣价</el-radio>
                            <el-radio :label="2">实际支付</el-radio>
                        </el-radio-group>
                        <div class="text">商品折后价：按商品参加优惠活动后金额计算，不包含积分抵扣和优惠券优惠金额。（不含运费）</div>
                        <div class="text">实际支付：按订单最后实际支付金额计算。（不含运费）</div>
                    </el-form-item>

                    <!-- <el-form-item label="结算周期">
                        <el-input style="width: 200px;" type="number" v-model="form.settle_cycle"><template slot="append">天</template>
                        </el-input>
                    </el-form-item> -->

                    <el-form-item label="订单分润条件" prop="estimate_module" :rules="{ required: true, message: '请选择'}">
                        <!-- <el-input style="width: 200px;" type="number" v-model="form.estimate_module"><template slot="append">天</template>
                        </el-input> -->
                        <el-radio-group v-model="form.estimate_module">
                            <el-radio :label="1">支付后</el-radio>
                            <el-radio :label="2">确认收货后</el-radio>
                        </el-radio-group>
                        <div class="text">支付后 或 确认收货后</div>
                    </el-form-item>
                    
                    <el-form-item label="待结算审核" prop="withdraw_audit" :rules="{ required: true, message: '请选择'}">
                        <el-radio-group v-model="form.withdraw_audit">
                            <el-radio :label="1">手动审核</el-radio>
                            <el-radio :label="2">自动审核</el-radio>
                        </el-radio-group>
                    </el-form-item>

                    <el-form-item label="自动审核策略" v-if="form.withdraw_audit == 2">
                        金额：<el-input style="width: 200px;" v-model="form.threshold_amount"></el-input>
                        <div class="text">低于多少金额可以通过</div>
                    </el-form-item>
                    <el-form-item label="" v-if="form.withdraw_audit == 2">
                        等级：<el-select v-model="form.level_id" clearable>
                            <el-option :value="0" label="请选择"></el-option>
                            <el-option :value="1" label="一级"></el-option>
                            <el-option :value="2" label="二级"></el-option>
                            <el-option :value="3" label="三级"></el-option>
                            <el-option :value="4" label="四级"></el-option>
                            <el-option :value="5" label="五级"></el-option>
                            <el-option :value="6" label="六级"></el-option>
                            <el-option :value="7" label="七级"></el-option>
                            <el-option :value="8" label="八级"></el-option>
                            <el-option :value="9" label="九级"></el-option>
                            <el-option :value="10" label="十级"></el-option>
                        </el-select>
                        <div class="text">多少等级以上可以自动通过</div>
                    </el-form-item>
                </LayoutCellItem>

            </LayoutCell>
        </el-form>
    </template>
    <template slot="footer">
        <el-button type="primary" @click="sum()">确定</el-button>
    </template>

</LayoutEditFormBox>